package cn.com.tiptop.license.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 功能列表
 * </p>
 *
 * @author qing
 * @since 2017-10-26
 */
@TableName("tb_license_function")
public class LicenseFunction extends Model<LicenseFunction> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 应用id
     */
	@TableField("application_id")
	private Long applicationId;
    /**
     * uuid
     */
	private String uuid;
    /**
     * 父功能uuid
     */
	@TableField("parent_uuid")
	private String parentUuid;
    /**
     * 菜单名称
     */
	private String name;
    /**
     * 类型：服务/菜单
     */
	private String type;
    /**
     * 等级
     */
	@TableField("fun_level")
	private Integer funLevel;
    /**
     * 图标
     */
	private String icon;
    /**
     * 昵称
     */
	private String alias;
    /**
     * 跳转/动作
     */
	private String action;
    /**
     * 备注
     */
	private String remark;
    /**
     * 状态
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getApplicationId() {
		return applicationId;
	}

	public void setApplicationId(Long applicationId) {
		this.applicationId = applicationId;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getParentUuid() {
		return parentUuid;
	}

	public void setParentUuid(String parentUuid) {
		this.parentUuid = parentUuid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getFunLevel() {
		return funLevel;
	}

	public void setFunLevel(Integer funLevel) {
		this.funLevel = funLevel;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "LicenseFunction{" +
			"id=" + id +
			", applicationId=" + applicationId +
			", uuid=" + uuid +
			", parentUuid=" + parentUuid +
			", name=" + name +
			", type=" + type +
			", funLevel=" + funLevel +
			", icon=" + icon +
			", alias=" + alias +
			", action=" + action +
			", remark=" + remark +
			", status=" + status +
			", createTime=" + createTime +
			"}";
	}
}
